package com.hashmap;

import java.util.*;

public class Scnner {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("输入多个整数");
        String i = sc.nextLine();
        HashMap<Character,Integer> hashMap = new HashMap<>();
        int max = 1;
        for (int j = 0; j < i.length(); j++) {
            char c = i.charAt(j);
            if (!(hashMap.containsKey(c))) {
                hashMap.put(c,1);
            } else {
                Integer num = hashMap.get(c);
                num++;
                if (num > max ) {
                    max = num;
                }
                hashMap.put(c,hashMap.get(c) + 1);
            }
        }
        for (Character character : hashMap.keySet()) {
            Integer integer = hashMap.get(character);
            if (integer.equals(max)) {
                System.out.println(character);
            }
        }




    }
}
